export default {
    namespaced: true,
    state: {
        Goods: {}, // 用于存储用户相关信息，初始为空对象
        GoodsTypeList:{}

    },
    mutations: {
        CLEAR_LOGIN_DATA(state) {
            state.Goods = {};
        },
        SET_GOODS_DATA(state, data) {
            state.Goods = data;
        },
        SET_GoodsTypeList_DATA(state, data) {
            state.GoodsTypeList = data;
        }
    },
    actions: {
        SET_DATA({ commit }, data) {
            console.log(data)
            commit('SET_GOODS_DATA', data);
        },
        CLEAR_DATA({ commit }) {
            commit('CLEAR_GOODS_DATA');
        },
        SET_GoodsTypeList_DATA({ commit }, data) {
            commit('SET_GoodsTypeList_DATA', data);
        },
    },
    getters: {
        getGoodsTypeListData(state) {
            return state.GoodsTypeList;
        },
    },
};